Optimal. Leaf size=258 \[ \frac {7 (9 A+B) \tanh ^{-1}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{128 \sqrt {2} a^3 c^{5/2} f}-\frac {(A-B) \sec ^5(e+f x) \sqrt {c-c \sin (e+f x)}}{5 a^3 c^3 f}-\frac {(9 A+B) \sec ^3(e+f x)}{30 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {7 (9 A+B) \sec (e+f x)}{96 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}+\frac {7 (9 A+B) \cos (e+f x)}{128 a^3 c f (c-c \sin (e+f x))^{3/2}}+\frac {7 (9 A+B) \sec (e+f x)}{240 a^3 c f (c-c \sin (e+f x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.56, antiderivative size = 258, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.184, Rules used = {2967, 2855, 2687, 2681, 2650, 2649, 206} \[ -\frac {(A-B) \sec ^5(e+f x) \sqrt {c-c \sin (e+f x)}}{5 a^3 c^3 f}-\frac {(9 A+B) \sec ^3(e+f x)}{30 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {7 (9 A+B) \sec (e+f x)}{96 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}+\frac {7 (9 A+B) \tanh ^{-1}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{128 \sqrt {2} a^3 c^{5/2} f}+\frac {7 (9 A+B) \cos (e+f x)}{128 a^3 c f (c-c \sin (e+f x))^{3/2}}+\frac {7 (9 A+B) \sec (e+f x)}{240 a^3 c f (c-c \sin (e+f x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 2649
Rule 2650
Rule 2681
Rule 2687
Rule 2855
Rule 2967
Rubi steps
\begin {align*} \int \frac {A+B \sin (e+f x)}{(a+a \sin (e+f x))^3 (c-c \sin (e+f x))^{5/2}} \, dx &=\frac {\int \sec ^6(e+f x) (A+B \sin (e+f x)) \sqrt {c-c \sin (e+f x)} \, dx}{a^3 c^3}\\ &=-\frac {(A-B) \sec ^5(e+f x) \sqrt {c-c \sin (e+f x)}}{5 a^3 c^3 f}+\frac {(9 A+B) \int \frac {\sec ^4(e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx}{10 a^3 c^2}\\ &=-\frac {(9 A+B) \sec ^3(e+f x)}{30 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {(A-B) \sec ^5(e+f x) \sqrt {c-c \sin (e+f x)}}{5 a^3 c^3 f}+\frac {(7 (9 A+B)) \int \frac {\sec ^2(e+f x)}{(c-c \sin (e+f x))^{3/2}} \, dx}{60 a^3 c}\\ &=\frac {7 (9 A+B) \sec (e+f x)}{240 a^3 c f (c-c \sin (e+f x))^{3/2}}-\frac {(9 A+B) \sec ^3(e+f x)}{30 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {(A-B) \sec ^5(e+f x) \sqrt {c-c \sin (e+f x)}}{5 a^3 c^3 f}+\frac {(7 (9 A+B)) \int \frac {\sec ^2(e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx}{96 a^3 c^2}\\ &=\frac {7 (9 A+B) \sec (e+f x)}{240 a^3 c f (c-c \sin (e+f x))^{3/2}}-\frac {7 (9 A+B) \sec (e+f x)}{96 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {(9 A+B) \sec ^3(e+f x)}{30 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {(A-B) \sec ^5(e+f x) \sqrt {c-c \sin (e+f x)}}{5 a^3 c^3 f}+\frac {(7 (9 A+B)) \int \frac {1}{(c-c \sin (e+f x))^{3/2}} \, dx}{64 a^3 c}\\ &=\frac {7 (9 A+B) \cos (e+f x)}{128 a^3 c f (c-c \sin (e+f x))^{3/2}}+\frac {7 (9 A+B) \sec (e+f x)}{240 a^3 c f (c-c \sin (e+f x))^{3/2}}-\frac {7 (9 A+B) \sec (e+f x)}{96 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {(9 A+B) \sec ^3(e+f x)}{30 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {(A-B) \sec ^5(e+f x) \sqrt {c-c \sin (e+f x)}}{5 a^3 c^3 f}+\frac {(7 (9 A+B)) \int \frac {1}{\sqrt {c-c \sin (e+f x)}} \, dx}{256 a^3 c^2}\\ &=\frac {7 (9 A+B) \cos (e+f x)}{128 a^3 c f (c-c \sin (e+f x))^{3/2}}+\frac {7 (9 A+B) \sec (e+f x)}{240 a^3 c f (c-c \sin (e+f x))^{3/2}}-\frac {7 (9 A+B) \sec (e+f x)}{96 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {(9 A+B) \sec ^3(e+f x)}{30 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {(A-B) \sec ^5(e+f x) \sqrt {c-c \sin (e+f x)}}{5 a^3 c^3 f}-\frac {(7 (9 A+B)) \operatorname {Subst}\left (\int \frac {1}{2 c-x^2} \, dx,x,-\frac {c \cos (e+f x)}{\sqrt {c-c \sin (e+f x)}}\right )}{128 a^3 c^2 f}\\ &=\frac {7 (9 A+B) \tanh ^{-1}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{128 \sqrt {2} a^3 c^{5/2} f}+\frac {7 (9 A+B) \cos (e+f x)}{128 a^3 c f (c-c \sin (e+f x))^{3/2}}+\frac {7 (9 A+B) \sec (e+f x)}{240 a^3 c f (c-c \sin (e+f x))^{3/2}}-\frac {7 (9 A+B) \sec (e+f x)}{96 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {(9 A+B) \sec ^3(e+f x)}{30 a^3 c^2 f \sqrt {c-c \sin (e+f x)}}-\frac {(A-B) \sec ^5(e+f x) \sqrt {c-c \sin (e+f x)}}{5 a^3 c^3 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 2.29, size = 479, normalized size = 1.86 \[ \frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right ) \left (15 (15 A+7 B) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^3 \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^5+60 (A+B) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^5+30 (15 A+7 B) \sin \left (\frac {1}{2} (e+f x)\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^2 \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^5+120 (A+B) \sin \left (\frac {1}{2} (e+f x)\right ) \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^5+80 (B-3 A) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^4 \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^2+96 (B-A) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^4+(-105-105 i) \sqrt [4]{-1} (9 A+B) \tan ^{-1}\left (\left (\frac {1}{2}+\frac {i}{2}\right ) \sqrt [4]{-1} \left (\tan \left (\frac {1}{4} (e+f x)\right )+1\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^4 \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^5-720 A \cos ^4(e+f x)\right )}{1920 a^3 f (\sin (e+f x)+1)^3 (c-c \sin (e+f x))^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 238, normalized size = 0.92 \[ \frac {105 \, \sqrt {2} {\left (9 \, A + B\right )} \sqrt {c} \cos \left (f x + e\right )^{5} \log \left (-\frac {c \cos \left (f x + e\right )^{2} + 2 \, \sqrt {2} \sqrt {-c \sin \left (f x + e\right ) + c} \sqrt {c} {\left (\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right )} + 3 \, c \cos \left (f x + e\right ) + {\left (c \cos \left (f x + e\right ) - 2 \, c\right )} \sin \left (f x + e\right ) + 2 \, c}{\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right ) - 4 \, {\left (105 \, {\left (9 \, A + B\right )} \cos \left (f x + e\right )^{4} - 14 \, {\left (9 \, A + B\right )} \cos \left (f x + e\right )^{2} - 2 \, {\left (35 \, {\left (9 \, A + B\right )} \cos \left (f x + e\right )^{2} + 216 \, A + 24 \, B\right )} \sin \left (f x + e\right ) - 48 \, A - 432 \, B\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{7680 \, a^{3} c^{3} f \cos \left (f x + e\right )^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 2.06, size = 410, normalized size = 1.59 \[ -\frac {\left (1260 c^{\frac {9}{2}} A +140 c^{\frac {9}{2}} B \right ) \sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right )+\left (-1890 \sqrt {2}\, \arctanh \left (\frac {\sqrt {c +c \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (c +c \sin \left (f x +e \right )\right )^{\frac {5}{2}} c^{2} A +864 c^{\frac {9}{2}} A -210 \sqrt {2}\, \arctanh \left (\frac {\sqrt {c +c \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (c +c \sin \left (f x +e \right )\right )^{\frac {5}{2}} c^{2} B +96 c^{\frac {9}{2}} B \right ) \sin \left (f x +e \right )+\left (-1890 c^{\frac {9}{2}} A -210 c^{\frac {9}{2}} B \right ) \left (\cos ^{4}\left (f x +e \right )\right )+\left (-945 \sqrt {2}\, \arctanh \left (\frac {\sqrt {c +c \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (c +c \sin \left (f x +e \right )\right )^{\frac {5}{2}} c^{2} A +252 c^{\frac {9}{2}} A -105 \sqrt {2}\, \arctanh \left (\frac {\sqrt {c +c \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (c +c \sin \left (f x +e \right )\right )^{\frac {5}{2}} c^{2} B +28 c^{\frac {9}{2}} B \right ) \left (\cos ^{2}\left (f x +e \right )\right )+1890 \sqrt {2}\, \arctanh \left (\frac {\sqrt {c +c \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (c +c \sin \left (f x +e \right )\right )^{\frac {5}{2}} c^{2} A +96 c^{\frac {9}{2}} A +210 \sqrt {2}\, \arctanh \left (\frac {\sqrt {c +c \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (c +c \sin \left (f x +e \right )\right )^{\frac {5}{2}} c^{2} B +864 c^{\frac {9}{2}} B}{3840 c^{\frac {13}{2}} a^{3} \left (1+\sin \left (f x +e \right )\right )^{2} \left (\sin \left (f x +e \right )-1\right ) \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+B\,\sin \left (e+f\,x\right )}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^3\,{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________